package org.a.a.a;

import java.util.ArrayList;

public final class f
{
  private static char[] a = new char[0];
  private final e b;
  private char[] c;
  private int d;
  private int e;
  private ArrayList f;
//  private boolean g = 0;
  private int h;
  private char[] i;
  private int j;
  private String k;
  private char[] l;

  public f(e parame)
  {
    this.b = parame;
  }

  private final char[] b(int paramInt)
  {
    e locale;
//    g localg;
    if (this.b != null)
    {
      locale = this.b;
//      localg = g.b;
    }
//    for (char[] arrayOfChar = locale.a(localg, paramInt); ; arrayOfChar = new char[Math.max(paramInt, 1000)])
//      return arrayOfChar;
	return null;
  }

  private void c(int paramInt)
  {
    int m = this.e;
    this.e = 0;
    char[] arrayOfChar1 = this.c;
    this.c = null;
    int n = this.d;
    this.d = -1;
    int i1 = m + paramInt;
    if (this.i != null)
    {
      int i2 = this.i.length;
      if (i1 <= i2);
    }
    else
    {
      char[] arrayOfChar2 = b(i1);
      this.i = arrayOfChar2;
    }
    if (m > 0)
    {
      char[] arrayOfChar3 = this.i;
      System.arraycopy(arrayOfChar1, n, arrayOfChar3, 0, m);
    }
    this.h = 0;
    this.j = m;
  }

  private void d(int paramInt)
  {
    if (this.f == null)
    {
      ArrayList localArrayList = new ArrayList();
      this.f = localArrayList;
    }
    char[] arrayOfChar1 = this.i;
//    this.g = 1;
    boolean bool = this.f.add(arrayOfChar1);
    int m = this.h;
    int n = arrayOfChar1.length;
    int i1 = m + n;
    this.h = i1;
    int i2 = arrayOfChar1.length;
    int i3 = i2 >> 1;
    if (i3 < paramInt)
      i3 = paramInt;
    int i4 = i2 + i3;
    char[] arrayOfChar2 = new char[Math.min(262144, i4)];
    this.j = 0;
    this.i = arrayOfChar2;
  }

  private void k()
  {
    this.c = null;
    this.d = -1;
    this.e = 0;
    this.k = null;
    this.l = null;
//    if (this.g)
//      l();
    this.j = 0;
  }

  private final void l()
  {
//    this.g = 0;
    this.f.clear();
    this.h = 0;
    this.j = 0;
  }

  public final void a()
  {
    if (this.b == null)
      k();
    while (true)
    {
      return;
//      if (this.i != null)
//      {
//        k();
//        char[] arrayOfChar = this.i;
//        this.i = null;
//        e locale = this.b;
////        g localg = g.b;
////        locale.a(localg, arrayOfChar);
//        continue;
//      }
    }
  }

  public final void a(int paramInt)
  {
    this.j = paramInt;
  }

  public final void a(char[] paramArrayOfChar, int paramInt1, int paramInt2)
  {
    this.k = null;
    this.l = null;
    this.c = paramArrayOfChar;
    this.d = paramInt1;
    this.e = paramInt2;
//    if (this.g)
//      l();
  }

  public final int b()
  {
    if (this.d >= 0);
    int n;
    int i1;
    for (int m = this.e; ; m = n + i1)
    {
      return m;
//      n = this.h;
//      i1 = this.j;
    }
  }

  public final void b(char[] paramArrayOfChar, int paramInt1, int paramInt2)
  {
//    this.c = null;
//    this.d = -1;
//    this.e = 0;
//    this.k = null;
//    this.l = null;
////    if (this.g)
////      l();
//    char[] arrayOfChar1;
//    int i2;
//    while (true)
//    {
//      this.h = 0;
//      this.j = 0;
//      if (this.d >= 0)
//        c(paramInt2);
//      this.k = null;
//      this.l = null;
//      arrayOfChar1 = this.i;
//      int n = arrayOfChar1.length;
//      int i1 = this.j;
//      i2 = n - i1;
//      if (i2 >= paramInt2)
//      {
//        int i3 = this.j;
//        System.arraycopy(paramArrayOfChar, paramInt1, arrayOfChar1, i3, paramInt2);
//        int i4 = this.j + paramInt2;
//        this.j = i4;
//        label129: return;
//        if (this.i != null)
//          break;
//        char[] arrayOfChar2 = b(paramInt2);
//        this.i = arrayOfChar2;
//        continue;
//      }
//      else
//      {
//        if (i2 <= 0)
//          break label227;
//        int i5 = this.j;
//        System.arraycopy(paramArrayOfChar, paramInt1, arrayOfChar1, i5, i2);
//        int i6 = paramInt1 + i2;
////        char[] arrayOfChar3 = paramInt2 - i2;
////        i2 = i6;
////        arrayOfChar1 = arrayOfChar3;
//      }
//    }
////    while (true)
////    {
////      d(arrayOfChar1);
////      char[] arrayOfChar4 = this.i;
////      System.arraycopy(paramArrayOfChar, i2, arrayOfChar4, 0, arrayOfChar1);
////      this.j = arrayOfChar1;
////      break label129;
////      break;
////      label227: int m = paramInt2;
////      i2 = paramInt1;
////    }
  }

  public final int c()
  {
    if (this.d >= 0);
    for (int m = this.d; ; m = 0)
      return m;
  }

  public final char[] d()
  {
	return null;
//    char[] arrayOfChar1;
//    if (this.d >= 0)
//      arrayOfChar1 = this.c;
//    do
//    {
//      while (true)
//      {
//        return arrayOfChar1;
////        if (this.g)
////          break;
//        arrayOfChar1 = this.i;
//      }
//      arrayOfChar1 = this.l;
//    }
//    while (arrayOfChar1 != null);
//    if (this.k != null)
//      arrayOfChar1 = this.k.toCharArray();
//    while (true)
//    {
//      this.l = arrayOfChar1;
//      break;
//      if (this.d >= 0)
//      {
//        if (this.e <= 0)
//        {
//          arrayOfChar1 = a;
//          continue;
//        }
//        arrayOfChar1 = new char[this.e];
//        char[] arrayOfChar2 = this.c;
//        int i1 = this.d;
//        int i2 = this.e;
//        System.arraycopy(arrayOfChar2, i1, arrayOfChar1, 0, i2);
//        continue;
//      }
//      int m = b();
//      if (m > 0)
//        break label133;
////      localObject1 = a;
//    }
////    label133: char[] arrayOfChar3 = new char[localObject1];
//    Object localObject2;
//    if (this.f != null)
//    {
//      int i3 = this.f.size();
//      int i4 = 0;
//      Object localObject3;
//      for (localObject2 = 0; i4 < i3; localObject2 = localObject3)
//      {
//        char[] arrayOfChar4 = (char[])this.f.get(i4);
//        int i5 = arrayOfChar4.length;
//   //     System.arraycopy(arrayOfChar4, 0, arrayOfChar3, localObject2, i5);
////        localObject3 = localObject2 + i5;
//        i4 += 1;
//      }
//    }
//    int n;
//    for (Object localObject1 = localObject2; ; n = 0)
//    {
//      char[] arrayOfChar5 = this.i;
////      int i6 = this.j;
////      System.arraycopy(arrayOfChar5, 0, arrayOfChar3, localObject1, i6);
////      localObject1 = arrayOfChar3;
//      break;
//    }
  }

  public final String e()
  {
	return null;
//    if (this.k == null)
//    {
//      if (this.l == null)
//        break label40;
//      char[] arrayOfChar1 = this.l;
//      String str1 = new String(arrayOfChar1);
//      this.k = str1;
//    }
//    while (true)
//    {
//      String str2 = this.k;
//      while (true)
//      {
//        return str2;
//        label40: if (this.d >= 0)
//        {
//          if (this.e <= 0)
//          {
//            str2 = "";
//            this.k = str2;
//            continue;
//          }
//          char[] arrayOfChar2 = this.c;
//          int n = this.d;
//          int i1 = this.e;
//          String str4 = new String(arrayOfChar2, n, i1);
//          this.k = str4;
//          break;
//        }
//      }
//      int m = this.h;
//      String str5 = this.j;
//      String str3;
//      if (m == 0)
//      {
//        if (str5 == 0);
//        char[] arrayOfChar3;
//        for (str3 = ""; ; str3 = new String(arrayOfChar3, 0, str5))
//        {
//          this.k = str3;
//          break;
//          arrayOfChar3 = this.i;
//        }
//      }
//      int i3 = str3 + str5;
//      StringBuilder localStringBuilder1 = new StringBuilder(i3);
//      if (this.f != null)
//      {
//        int i2 = this.f.size();
//        int i4 = 0;
//        while (i4 < i2)
//        {
//          char[] arrayOfChar4 = (char[])this.f.get(i4);
//          int i5 = arrayOfChar4.length;
//          StringBuilder localStringBuilder2 = localStringBuilder1.append(arrayOfChar4, 0, i5);
//          i4 += 1;
//        }
//      }
//      char[] arrayOfChar5 = this.i;
//      int i6 = this.j;
//      StringBuilder localStringBuilder3 = localStringBuilder1.append(arrayOfChar5, 0, i6);
//      String str6 = localStringBuilder1.toString();
//      this.k = str6;
//    }
  }

  public final char[] f()
  {
    if (this.d >= 0)
      c(1);
    while (true)
    {
      return this.i;
//      char[] arrayOfChar1 = this.i;
//      if (arrayOfChar1 == null)
//      {
//        char[] arrayOfChar2 = b(0);
//        this.i = arrayOfChar2;
//        continue;
//      }
//      int m = this.j;
//      int n = arrayOfChar1.length;
//      if (m < n)
//        continue;
//      d(1);
    }
  }

  public final char[] g()
  {
    k();
    char[] arrayOfChar = this.i;
    if (arrayOfChar == null)
    {
      arrayOfChar = b(0);
      this.i = arrayOfChar;
    }
    return arrayOfChar;
  }

  public final int h()
  {
    return this.j;
  }

  public final char[] i()
  {
    if (this.f == null)
    {
      ArrayList localArrayList1 = new ArrayList();
      this.f = localArrayList1;
    }
//    this.g = 1;
    ArrayList localArrayList2 = this.f;
    char[] arrayOfChar1 = this.i;
    boolean bool = localArrayList2.add(arrayOfChar1);
    int m = this.i.length;
    int n = this.h + m;
    this.h = n;
    int i1 = m >> 1;
    char[] arrayOfChar2 = new char[Math.min(m + i1, 262144)];
    this.j = 0;
    this.i = arrayOfChar2;
    return arrayOfChar2;
  }

  public final char[] j()
  {
    char[] arrayOfChar1 = this.i;
    int m = arrayOfChar1.length;
    if (m == 262144);
    int i1;
    for (int n = 262145; ; n = Math.min(262144, i1))
    {
      char[] arrayOfChar2 = new char[n];
      this.i = arrayOfChar2;
      char[] arrayOfChar3 = this.i;
      System.arraycopy(arrayOfChar1, 0, arrayOfChar3, 0, m);
      return this.i;
//      i1 = (m >> 1) + m;
    }
  }

  public final String toString()
  {
    return e();
  }
}

/* Location:           E:\AndroidDecompiler\jd-gui-0.3.3.windows\newrclasses.dex.dex2jar.jar
 * Qualified Name:     org.a.a.a.f
 * JD-Core Version:    0.6.0
 */